package entity;
public class Course {	
	private int course_id;	    //课程编号
	private String course_name;	//课程名称
	private String teacher;	    //授课教师姓名
	private int point;	        //学分
	private String time1;	    //第一次上课时间
	private String time2;	    //第二次上课时间
	private String location;	//上课地点
	private String limited;     //限选人数
	private String selected="0";    //已选人数

	public Course() {
	}
	public Course(int course_id) {
		this.course_id = course_id;
	}
	
	public Course(int course_id, String course_name, String teacher, int point, String time1, String time2,
			String location, String limited,String selected) {
		super();
		this.course_id = course_id;
		this.course_name = course_name;
		this.teacher = teacher;
		this.point = point;
		this.time1 = time1;
		this.time2 = time2;
		this.location = location;
		this.limited = limited;
		this.selected=selected;
	}

	public int getCourse_id() {
		return course_id;
	}
	public void setCourse_id(int course_id) {
		this.course_id = course_id;
	}
	public String getCourse_name() {
		return course_name;
	}
	public void setCourse_name(String course_name) {
		this.course_name = course_name;
	}
	public String getTeacher() {
		return teacher;
	}
	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}
	public int getPoint() {
		return point;
	}
	public void setPoint(int point) {
		this.point = point;
	}
	public String getTime1() {
		return time1;
	}
	public void setTime1(String time1) {
		this.time1 = time1;
	}
	public String getTime2() {
		return time2;
	}
	public void setTime2(String time2) {
		this.time2 = time2;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getLimited() {
		return limited;
	}
	public void setLimited(String limited) {
		this.limited = limited;
	}
	public String getSelected() {
		return selected;
	}
	public void setSelected(String selected) {
		this.selected = selected;
	}
	@Override
	public String toString() {
		return "Course [course_id=" + course_id + ", course_name=" + course_name + ", teacher=" + teacher + ", point="
				+ point + ", time1=" + time1 + ", time2=" + time2 + ", location=" + location + ", limited=" + limited
				+ "selected="+selected+"]";
	}
	
}
